home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xml;
-
- public class XDRWriter$EntityProxy extends XDRWriter.DeclProxy {
- // $FF: synthetic field
- final XDRWriter this$0;
- GeneralEntityDeclaration decl;
-
- XDRWriter$EntityProxy(XDRWriter var1) {
- super(var1);
- this.this$0 = var1;
- }
-
- XDRWriter$EntityProxy(XDRWriter var1, GeneralEntityDeclaration var2) {
- super(var1);
- this.this$0 = var1;
- this.setDecl(var2);
- }
-
- void setDecl(GeneralEntityDeclaration var1) {
- this.decl = var1;
- super.setDecl(var1);
- }
-
- public void write(SXE var1, boolean var2) {
- var1.writeElem("Entity");
- var1.writeAttr("name", this.decl.getName());
- if (this.decl.isInternal()) {
- var1.writeText(this.this$0.schema.expandPERefs(this.decl.getValue(), this.decl), false);
- } else {
- ExternalGEDeclaration var3 = (ExternalGEDeclaration)this.decl;
- if (var3.isUnparsed()) {
- var1.writeAttr("notation", var3.getNotation());
- }
-
- if (((EntityDeclaration)var3).getSystemID() != null) {
- var1.writeAttr("systemID", this.this$0.schema.expandPERefs(((EntityDeclaration)var3).getSystemID().toSource(), this.decl));
- }
-
- if (((EntityDeclaration)var3).getPublicID() != null) {
- var1.writeAttr("publicID", this.this$0.schema.expandPERefs(((EntityDeclaration)var3).getPublicID(), this.decl));
- }
- }
-
- var1.flush("Entity");
- if (var2) {
- ((XDRWriter.DeclProxy)this).writeComments(var1);
- }
-
- }
- }
-